<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="###">自定义单页</a></div>
<div class="button-nav">
<a href="{url('diypage/add',array(id=>$pid,type=>1))}" class="button button-blank link" title="新增页面"><i class="iconfont" title="新增页面">&#xF023;</i> 新增页面</a>
</div>
<div class="m5">
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="fn-tac w20">#</th><th class="fn-tac w100">链接标签</th><th class="fn-tal">页面名称</th><th class="fn-tac w60">站点ID</th><th class="w120 fn-tac">最后更新时间</th><th class="fn-tac w120">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td class="fn-tac"><input class="input w80 h20 p0 fn-tac" type="text" value="{diypage:{$vo['id']}}" /></td>
    <td class="fn-tal"><a title="编辑" href="{url('diypage/edit',array(id=>$vo['id']))}">{$vo['title']}</a></td>
    <td class="fn-tac">{$vo['language']}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip"><a title="预览" href="{url('default/index/page',array(uid=>$vo['id']))}" target="_blank">预览</a>/<a title="编辑" href="{url('diypage/edit',array(id=>$vo['id']))}">编辑</a>/<a class="del" title="删除" href="###" url="{url('diypage/index',array(id=>$vo['id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div id="page" class="fn-r m5">{$page}</div>
<script type="text/javascript">
Do('base','Dialog',function(){
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>
